﻿using HuaJiLedger.Helpers;
using HuaJiLedger.Repositorys;
using HuaJiLedger.ViewModels.Home;

namespace HuaJiLedger;

public static class MauiProgram
{
	public static MauiApp CreateMauiApp()
	{
		var builder = MauiApp.CreateBuilder();
		builder
			.UseMauiApp<App>()
			.ConfigureFonts(fonts =>
			{
				fonts.AddFont("XiaoKeNaiLaoTiShangYongMianFei@QingKeZiTi-2.ttf", "XiaoKeNaiLaoTi");
				fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
			});

		//builder.Services.AddSingleton<HomeViewModel>();
  //      builder.Services.AddSingleton<AddLedgerItemViewModel>();
  //      //builder.Services.AddTransient<TodoItemPage>();

  //      builder.Services.AddSingleton<LedgerItemRepository>();

		return builder.Build();
	}
}
